import request from '@/utils/request'

// 查询压降分析结果列表
export function listDispatchPressureDropAnalysisResults(query) {
  return request({
    url: '/system/dispatchPressureDropAnalysisResults/list',
    method: 'get',
    params: query
  })
}

// 查询压降分析结果详细
export function getDispatchPressureDropAnalysisResults(pressureDropAnalysisResultsId) {
  return request({
    url: '/system/dispatchPressureDropAnalysisResults/' + pressureDropAnalysisResultsId,
    method: 'get'
  })
}

// 新增压降分析结果
export function addDispatchPressureDropAnalysisResults(data) {
  return request({
    url: '/system/dispatchPressureDropAnalysisResults',
    method: 'post',
    data: data
  })
}

// 修改压降分析结果
export function updateDispatchPressureDropAnalysisResults(data) {
  return request({
    url: '/system/dispatchPressureDropAnalysisResults',
    method: 'put',
    data: data
  })
}

// 删除压降分析结果
export function delDispatchPressureDropAnalysisResults(pressureDropAnalysisResultsId) {
  return request({
    url: '/system/dispatchPressureDropAnalysisResults/' + pressureDropAnalysisResultsId,
    method: 'delete'
  })
}
